package cn.web.auction.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.web.auction.mapper.PcommentMapper;
import cn.web.auction.pojo.Pcomment;
import cn.web.auction.service.PcommentService;

@Service
public class PcommentServiceImpl implements PcommentService {
    @Autowired
    private PcommentMapper pcommentmapper;
	@Override
	public List<Pcomment> findComment() {
		List<Pcomment> list = pcommentmapper.selectByExample(null);
		return list;
	}
	@Override
	public void addComment(Pcomment pcomment) {
		pcommentmapper.insert(pcomment);
		
		
	}
	@Override
	public void updateComment(Pcomment pcomment) {
		pcommentmapper.updateByExample(pcomment, null);
		
		
	}

}
